@extends('default.layouts.vice_head_foot')
@section('title'){{ '校园招聘|'.Site::get('webname') }} @endsection
{{--首页css--}}
@section('insert_css')
    <link rel="stylesheet" href="{{asset('/default/css/index/vice_public.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/index/campusRecruit.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/index/station.css')}}">
@endsection
{{--主体内容--}}
@section('content')
    {{--副页菜单模版--}}
    @include('default.layouts.index_vice_mune')
    {{--分站列表--}}
    @include('default.layouts.station')
    {{--bannaer--}}
    <div class="banner">
        <div class="box">
            <dl>
                <dt>
                <h2>热门校招</h2></dt>
                @if(count($jobList) > 0)
                    @foreach($jobList as $k=> $v)
                        @if($k <= 3)
                            <dd @if($k == 0) style="border-top:none" @endif>
                                <a href="{{url($v->joburl)}}" target="_blank">
                                    <span>
                                        <img src="{{asset($v->logo)}}" alt="{{$v->company_name}}" width="50"
                                             height="50">
                                    </span>
                                    <p>{{str_limit($v->company_name,20)}}</p>
                                    <p class="font15">{{str_limit($v->job_title,14)}}
                                        <strong>{{str_limit($v->location1,6)}}</strong></p>
                                </a>
                            </dd>
                        @endif
                    @endforeach
                @else
                    <dd class="nojoblist"><span>没有找到公司招聘...</span></dd>
                @endif
            </dl>
        </div>
    </div>
    {{--end bannaer--}}

    <div class="main">
        <!--搜索栏-->
        <div class="search">
            <div class="search_content" id="search_content">
                <form action="{{url('job')}}" method="post" name="resumeSearch" id="resumeSearch">
                    {{csrf_field()}}
                    <input type="hidden" value="0" id="selArea" name="jobarea1" data-value="1">
                    <input type="hidden" value="2" id="part_status" name="part_status">
                    <div class="search_region">
                        <div class="region" id="selArea_select" name="selArea_select"><span
                                    class="chooseregion"><a>地区不限</a></span> <i class="region_icon"></i></div>
                    </div>
                    <div class="inputtext"><input type="text" name="keyword" placeholder="请输入职位名称"></div>
                    <div class="search_btn"><input type="submit" value=""></div>
                </form>
            </div>
        </div>
        <div class="prompt">
            <dl>
                <dt>热门搜索：</dt>
                <dd><a href="{{url('job?keyword=销售&part_status=2')}}">销售</a></dd>
                <dd><a href="{{url('job?keyword=会计&part_status=2')}}">会计</a></dd>
                <dd><a href="{{url('job?keyword=文员&part_status=2')}}">文员</a></dd>
                <dd><a href="{{url('job?keyword=实习生&part_status=2')}}">实习生</a></dd>
                <dd><a href="{{url('job?keyword=普工&part_status=2')}}">普工</a></dd>
            </dl>
        </div>
        <!--搜索栏结束-->

        {{--最新实习岗位--}}
        <div class="internships">
            <div class="title"><h2>最新实习岗位 <a href="{{url('job?part_status=2')}}">更多></a></h2></div>
            @if(count($jobList) > 0)
                <ul>
                    @foreach($jobList as $k=> $v)
                        <li @if($k%3 == 0) class="noMarginLeft" @endif>
                            <a href="{{url($v->joburl)}}" target="_blank">
                                <p class="job_title">{{str_limit($v->job_title,24)}}
                                    <span>{{str_limit($v->updatetime)}}</span></p>
                                <p>{{str_limit($v->company_name,32)}}</p>
                                <p class="pay">{{str_limit($v->money)}}<span>{{str_limit($v->location1)}}</span></p>
                            </a>
                        </li>
                    @endforeach
                </ul>
            @endif
        </div>
        {{--最新实习岗位结束--}}

        {{--名企招聘--}}
        <div class="famousCompany">
            <div class="title"><h2>名企招聘</h2></div>
            <div class="campusOne">
                @if(count($campusX1) > 0)
                    <ul>
                        @foreach($campusX1 as $k=> $v)
                            <li @if($k%3==0) class="noMarginleft" @endif>
                                <a alt="{{$v->title}}" href="{{$v->ad_url}}" target="_blank">
                                    <img src="{{$v->pic_url}}" width="{{$v->width}}" height="{{$v->height}}">
                                </a>
                            </li>
                        @endforeach
                    </ul>
                @else
                    <div class="no_ad"><span>你还没添加名企招聘广告</span></div>
                @endif
            </div>
            <div class="companyTwo">
                @if(count($campusX2) > 0)
                    <ul>
                        @foreach($campusX2 as $k=> $v)
                            <li @if($k%6==0) class="noMarginleft" @endif>
                                <a alt="{{$v->title}}" href="{{$v->ad_url}}" target="_blank">
                                    <img src="{{$v->pic_url}}" width="{{$v->width}}" height="{{$v->height}}">
                                </a>
                            </li>
                        @endforeach
                    </ul>
                @else
                    <div class="no_ad"><span>你还没添加名企招聘广告</span></div>
                @endif
            </div>
        </div>
        {{--名企招聘结束--}}

        {{--校园招聘会--}}
        <div class="wrap">
            <div class="recruitment">
                <div class="title"><h2>校园招聘会</h2><span><a href="{{url('job?part_status=2')}}">更多></a></span></div>
                @if(count($recruitment) > 0)
                    <ul>
                        @foreach($recruitment as $v)
                            <li @if($v->hold_time >= date('Y-m-d',time()))class="booked"@endif>
                                <a href="{{url('job_fair_'.$v->id.'.html')}}" target="_blank">
                                    <div class="rtime">
                                        <span class="date">{{$v->hold_date}}</span>
                                        <span class="week">{{$v->week}}</span>
                                    </div>
                                    <dl>
                                        <dt>{{$v->job_title,44}}</dt>
                                        <dd>举办院校：{{$v->hold_unit,44}}</dd>
                                        <dd>举办地点：{{$v->hold_address,44}}</dd>
                                    </dl>
                                    <i class="icon"></i>
                                </a>
                            </li>
                        @endforeach
                    </ul>
                @else
                    <div class="nolist">你还没有添加招聘会...</div>
                @endif
            </div>
            {{--校园招聘会结束--}}
            {{--校园资讯--}}
            <div class="news">
                <div class="title"><h2>校园资讯</h2><span><a href="{{url($cate_url)}}">更多></a></span></div>
                <ul>
                    @if(count($news) > 0)
                        @foreach($news as $v)
                            <li><a href="{{url('newsinfo_'.$v->id.'.html')}}" target="_blank">{{str_limit($v->title,28)}}</a></li>
                        @endforeach
                    @else
                        <li>你还没有添加校园资讯...</li>
                    @endif
                </ul>
            </div>
        </div>
        {{--职场资讯结束--}}

        {{--合作院校--}}
        <div class="famousCompany">
            <div class="title"><h2>合作院校</h2></div>
            <div class="companyThree">
                @if(count($campusX3) > 0)
                    <ul>
                        @foreach($campusX3 as $k=> $v)
                            <li @if($k%4==0) class="noMarginleft" @endif>
                                <a alt="{{$v->title}}" href="{{$v->ad_url}}" target="_blank">
                                    <img src="{{$v->pic_url}}" width="{{$v->width}}" height="{{$v->height}}">
                                </a>
                            </li>
                        @endforeach
                    </ul>
                @else
                    <div class="no_ad"><span>你还没添加合作院校广告...</span></div>
                @endif
            </div>
        </div>
        {{--合作院校结束--}}
    </div>
    {{--主体内容结束--}}
@endsection
{{--首页js--}}
@section('footerjs')
    @parent
    <script type="text/javascript" src="{{Resources::jsProvinceArea()}}"></script>
    <script type="text/javascript">
        $(function(){
            option_city.unshift({"value": '', "text": "地区不限", "selected": true});
            $("#search_content #selArea").select({
                optionData: option_city,
                css: 'personOptions'//下拉层的css
            });
        })
    </script>
@endsection